﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace vfife_building_algorithm
{
    public class Node
    {
        private int id;
        private double mass;//mass of a node
        private double xcoord;
        private double ycoord;
        private double zcoord;
        private bool isConnected=false;
        private Hashtable elmtConnected=new Hashtable();
        public int Id
        { 
            get {return id;}
        }
        public double Xcoord
        {
            get { return xcoord; }
            set { xcoord = value; }
        }
        public double Ycoord
        {
            get { return ycoord; }
            set { ycoord = value; }
        }
        public double Zcoord
        {
            get { return zcoord; }
            set { zcoord = value; }
        }
        public double Mass
        {
            get { return mass; }
            set { mass = value; }
        }
        public bool IsConnected
        {
            get { return isConnected; }
            set { isConnected = value; }
        }
        public Hashtable ElmtConnected 
        {
            get { return elmtConnected; }
            set { elmtConnected = value; }

        }



        public Node(int id) {
            this.id = id;
            this.xcoord = 0;
            this.ycoord = 0;
            this.zcoord = 0;
            this.mass = 0;
        }
        public Node(int id,double x, double y,double mass) {
            this.id = id;
            this.xcoord = x;
            this.ycoord = y;
            this.zcoord = 0;
            this.mass = mass;
        }
        public Node(int id,double x, double y, double z,double mass) {
            this.id = id;
            this.xcoord = x;
            this.ycoord = y;
            this.zcoord = z;
            this.mass = mass;
        }
        
    }
     
}
